package com.eairlv.share.auto.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.eairlv.share.auto.entity.po.enums.ShareWay;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author lv
 * @create 2018-07-23 11:26
 * @desc
 **/
@Data
@Builder
@TableName(value = "share_table_record", autoResultMap = true)
@NoArgsConstructor
@AllArgsConstructor
public class ShareTableRecordPO {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer shareTableId;

    private Boolean auto;

    @TableField(typeHandler = FastjsonTypeHandler.class)
    private List<String> success;

    @TableField(typeHandler = FastjsonTypeHandler.class)
    private List<String> failure;

    private Long createTime;
}
